<template>
        <div>
            <label class="radio-inline" v-for="item in inputDefine.options">
                <input type="radio"  :name="inputDefine.name" :value="item.value" @change="dataChange($event)"/> {{item.displayName}}
            </label>
        </div>
</template>

<script>
    export default{
        data(){
            return{}
        },
        props:{
          inputDefine:{
            type:Object,
            required: true
          },
          elementData:{
            required: true
          }
        },
        methods:{
             "dataChange":function(event){
                 var dataInfo={"newValue":event.target.value}
                 this.$emit('dataChange',this.inputDefine,dataInfo);
             }
        }
    }
</script>
